package com.numberone.system.domain;


import com.numberone.common.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品表 goods
 * 
 * @author numberone
 * @date 2020-09-28
 */
public class Goods extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 商品表 */
	private Long id;
	/** 商品名称 */
	private String name;
	/** 商品图片 */
	private String img;
	/** 商品价格 */
	private BigDecimal price;
	/** 商品会员价 */
	private BigDecimal vipPrice;
	/** 商品折扣价 */
	private BigDecimal disPrice;
	/** 商品发布时间 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date publishTime;
	/** 商品库存 */
	private Integer stock;
	/** 商品是否自营 */
	private Integer ifAautotrophy;
	/** 商品积分 */
	private Integer goodIntegral;
	/** 首页分类三级类目id */
	private Long typethirdId;
	/** 首页分类一级类目id */
	private Long typeinfofristId;
	/** 店铺id */
	private Long shopsId;
	/** 商品描述 */
	private String content;
	/** 商品状态 */
	private Integer status;
	/** 某些活动起始时间 保留字段 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date startTime;
	/** 结束时间 保留字段 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date endTime;
	/** 浏览次数 */
	private Integer browse;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public BigDecimal getVipPrice() {
		return vipPrice;
	}

	public void setVipPrice(BigDecimal vipPrice) {
		this.vipPrice = vipPrice;
	}

	public BigDecimal getDisPrice() {
		return disPrice;
	}

	public void setDisPrice(BigDecimal disPrice) {
		this.disPrice = disPrice;
	}

	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public Integer getIfAautotrophy() {
		return ifAautotrophy;
	}

	public void setIfAautotrophy(Integer ifAautotrophy) {
		this.ifAautotrophy = ifAautotrophy;
	}

	public Integer getGoodIntegral() {
		return goodIntegral;
	}

	public void setGoodIntegral(Integer goodIntegral) {
		this.goodIntegral = goodIntegral;
	}

	public Long getTypethirdId() {
		return typethirdId;
	}

	public void setTypethirdId(Long typethirdId) {
		this.typethirdId = typethirdId;
	}

	public Long getTypeinfofristId() {
		return typeinfofristId;
	}

	public void setTypeinfofristId(Long typeinfofristId) {
		this.typeinfofristId = typeinfofristId;
	}

	public Long getShopsId() {
		return shopsId;
	}

	public void setShopsId(Long shopsId) {
		this.shopsId = shopsId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getBrowse() {
		return browse;
	}

	public void setBrowse(Integer browse) {
		this.browse = browse;
	}
}
